﻿/***************************************************************************************************/
/* @date on 2020-9-2 14:31:08                                                                      */
/* @author Xie Jian                                                                                */
/* @email 190954950@qq.com                                                                         */
/* @describe 代码着色(html)                                                                        */
/***************************************************************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CodeColorHtml
{
    /// <summary>
    /// 代码着色
    /// </summary>
    public class CodeColourHtml
    {
        /// <summary>
        /// 着色
        /// </summary>
        /// <param name="code">代码</param>
        /// <param name="codeType">代码类型</param>
        /// <returns>着色后Html</returns>
        public string Colour(string code, CodeType codeType)
        {
            Colour colour = new Colour(code, codeType);
            return colour.GetCodeColorHtml();
        }
    }
}
